package com.youlu.campus.service.platform;

import com.youlu.campus.entity.PlatformUserComplaintConsultRecord;
import com.youlu.campus.entity.VO.req.PlatformUserComplaintReadMsgVO;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

public interface PlatformUserComplaintConsultRecordService {

    PlatformUserComplaintConsultRecord create(PlatformUserComplaintConsultRecord record);

    List<PlatformUserComplaintConsultRecord> findByPlatformUserComplaintId(String platformUserComplaintId);

    /**
     * 获取未读消息数量
     *
     * @param pucId
     * @param createType
     * @return
     */
    HashMap<String, Object> getUnReadMsgCount(String pucId, String createType);

    /**
     * 读消息
     *
     * @param req
     * @return
     */
    boolean readMsg(PlatformUserComplaintReadMsgVO req);

    void updateReadMsgStatus(Date date, String createType);
}
